package com.kd.service.jobSeeker;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.PageInfo;
import com.kd.bean.jobSeeker.Deliver_resume;
import com.kd.bean.recruiter.Recruiter_basic;
import com.kd.bean.recruiter.Recruitment_msg;

/**
 * 求职者相关的类
 * --投递简历表（IDeliver_resumeService）--
 * @author ZFC
 *
 */
public interface IDeliver_resumeService {

	/**
	 * 招聘者
	 * 查询简历 通过招聘者的id
	 * @param recruiter_id
	 * @return
	 * @throws Exception
	 */
	public PageInfo<Deliver_resume> queryAllDeliverMessageByRecruiter_id(Integer pageNum,Integer pageSize,Integer recruiter_id) throws Exception;
	
	/**
	 * 修改求职者的面试申请状态
	 * 
	 * 1、简历申请未通过
	 * 2、简历申请通过<发送面试邀请>
	 * @return
	 * @throws Exception
	 */
	public Boolean updateDeliveDr_state(Integer dr_id,Integer dr_state) throws Exception;
	
	/**
	 * 删除投递简历
	 * 删除状态
	 * 1、未删除
	 * 2、已删除
	 * @param dr_id
	 * @param dr_delete_state
	 * @return
	 * @throws Exception
	 */
	public Boolean updateDr_delete_state(Integer dr_id,Integer dr_delete_state) throws Exception;
	
	/**
	 * 一键投递简历
	 * @param deliver
	 * @return
	 * @throws Exception
	 */
	public Boolean insertDeliver_resume(Integer[] basic_id,Integer recruiter_id,Recruitment_msg recruitment_msg) throws Exception;
	
	/**
	 * 投递简历  应聘者
	 * 投递一个
	 * @param deliver_resume
	 * @return
	 * @throws Exception
	 */
	public Boolean insertDeliver_resumeOne(Deliver_resume deliver_resume,Integer basic_id) throws Exception;
	
	/**
	 * 查询投递简历 通过投递人的文档id
	 * @param doc_id
	 * @return
	 */
	public PageInfo<Deliver_resume> queryDeliver_resumeByDoc_id(Integer pageSize,Integer pageNum,Integer basic_id) throws Exception;
	
	/**
	 * 同意面试
	 * @param dr_download_state
	 * @param dr_id
	 * @return
	 * @throws Exception
	 */
	public Boolean updateDr_download_state(Integer dr_download_state,Integer dr_id) throws Exception;
}
